package com.ryzx.auth.service;

import com.ryzx.jpa.helper.base.BapBaseRepository;
import com.ryzx.jpa.helper.base.BapBaseServiceImpl;
import com.ryzx.auth.repository.BapUserRepository;
import com.ryzx.auth.vo.BapUser;
import com.querydsl.jpa.impl.JPAQueryFactory;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class BapUserService extends BapBaseServiceImpl<BapUser, Long> {
    @Resource
    BapUserRepository bapUserRepository;
    public BapUserService(JPAQueryFactory jpaQueryFactory, BapBaseRepository<BapUser, Long> bapBaseRepository) {
        super(jpaQueryFactory, bapBaseRepository);
    }
    public BapUser findByAccount(String name){
        return bapUserRepository.findByAccount(name);
    }
}
